<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags"  prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>模块信息查询</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
      <SCRIPT type="text/javascript" src="<%=basePath%>javaScripts/jquery-1.5.1.min.js"></SCRIPT>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>styles/friends_style.css" />
	   <link rel="stylesheet" type="text/css"
			href="<%=basePath%>styles/tr_style.css"/>
			 <script type="text/javascript" src="<%=basePath%>javaScripts/tr_toggle.js"></script>
			 <SCRIPT type="text/javascript">
		 
			   function checkBoxChecked1(){
			    var ch= document.getElementById("moduleTh");
			    var cch1= document.getElementById("thChildModule-1");
			    var   cch2=document.getElementById("thChildModule-2");
			      var cch3= document.getElementById("thChildModule-3");
			    if(ch.checked){
			     
			       if(!cch1.checked){
			         cch1.setAttribute("checked", "checked");
			       }
			   
			      if(!cch2.checked){
			      cch2.setAttribute("checked", "checked");
			      }
			    
			      if(!cch3.checked){
			      cch3.setAttribute("checked", "checked");
			      }
			        
			    }else{
			      
			       if(cch1.checked){
			      
			         cch1.setAttribute("checked", false);
			       }
			   
			      if(cch2.checked){
			      cch2.setAttribute("checked", false);
			      }
			     
			      if(cch3.checked){
			      cch3.setAttribute("checked", false);
			      }
			    }
			  }
			  function checkBoxChecked2(){
			    var ch= document.getElementById("baseModule");
			    var cch1= document.getElementById("baseChildModule-1");
			    var   cch2=document.getElementById("baseChildModule-2");
			      var cch3= document.getElementById("baseChildModule-3");
			       var cch4= document.getElementById("baseChildModule-4");
			    if(ch.checked){
			     
			       if(!cch1.checked){
			         cch1.setAttribute("checked", "checked");
			       }
			   
			      if(!cch2.checked){
			      cch2.setAttribute("checked", "checked");
			      }
			    
			      if(!cch3.checked){
			      cch3.setAttribute("checked", "checked");
			      }
			         if(!cch4.checked){
			      cch4.setAttribute("checked", "checked");
			      }
			    }else{
			      
			       if(cch1.checked){
			      
			         cch1.setAttribute("checked", false);
			       }
			   
			      if(cch2.checked){
			      cch2.setAttribute("checked", false);
			      }
			     
			      if(cch3.checked){
			      cch3.setAttribute("checked", false);
			      }
			           if(cch4.checked){
			      cch4.setAttribute("checked", false);
			      }
			    }
			  }
			  
			    function checkBoxChecked3(){
			    var ch= document.getElementById("sModule");
			    var cch1= document.getElementById("sChildModule-1");
			    var   cch2=document.getElementById("sChildModule-2");

			    if(ch.checked){
			     
			       if(!cch1.checked){
			         cch1.setAttribute("checked", "checked");
			       }
			   
			      if(!cch2.checked){
			      cch2.setAttribute("checked", "checked");
			      }
			    
			       
			    }else{
			      
			       if(cch1.checked){
			      
			         cch1.setAttribute("checked", false);
			       }
			   
			      if(cch2.checked){
			      cch2.setAttribute("checked", false);
			      }
			     
			     
			    }
			  }
			  
			   function checkBoxChecked4(){
			    var ch= document.getElementById("bModule");
			    var cch1= document.getElementById("bChildModule-1");
			   

			    if(ch.checked){
			     
			       if(!cch1.checked){
			         cch1.setAttribute("checked", "checked");
			       }
			   
			     
			    
			       
			    }else{
			      
			       if(cch1.checked){
			      
			         cch1.setAttribute("checked", false);
			       }
			   
			     
			    }
			  }
			  
			    function checkBoxChecked5(){
			    var ch= document.getElementById("mModule");
			    var cch1= document.getElementById("mChildModule-1");
			    var   cch2=document.getElementById("mChildModule-2");

			    if(ch.checked){
			     
			       if(!cch1.checked){
			         cch1.setAttribute("checked", "checked");
			       }
			   
			      if(!cch2.checked){
			      cch2.setAttribute("checked", "checked");
			      }
			    
			       
			    }else{
			      
			       if(cch1.checked){
			      
			         cch1.setAttribute("checked", false);
			       }
			   
			      if(cch2.checked){
			      cch2.setAttribute("checked", false);
			      }
			     
			     
			    }
			  }
			   
			 </SCRIPT>
  </head>
  
  <body topmargin="0">
      <form action="bbs/module/manager_updateModuleInfo" method="post">
          <div class="fd_sc" >
				<div class="fd_sc_tip" >
					<table width="100%" cellpadding="0" cellspacing="0" border="0">
						<tr>
							<td align="left" class="tb_left" valign="middle"> 
								 论坛模块屏蔽 
							</td>
							<td align="right" class="tb_right" valign="middle">
								 &nbsp;
							</td>
						</tr>
					</table>
				</div>
				 <div class="fd_sc_header">
					
			</div>
			 <div style="margin-top: 10px;">
			  <div style="border-bottom: 2px solid #cccccc;padding-left: 20px;">
			  
			  <label>状态：<input type="checkbox" checked="checked" disabled="true"><span style="color:red" >已禁用</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" disabled="true" ><span style="color:green">可用</span> </label>
			    <label style="margin-left: 40px;color: green;">
			     <s:property value="#request.moduleUpdateMsg"/>
			   </label>
			  </div>
			  
			 </div>
			 <div style="padding-left: 20px;border-bottom: 1px solid #cccccc">
			    
			   <p> <s:checkboxlist list="#{'01_':'技术分析交流区' }" name="moduleTh"  listKey="key" listValue="value" theme="simple" onclick="checkBoxChecked1()"  value="#request.moduleBean.moduleTh"></s:checkboxlist><span style="font-size:12px;color:green;">(父模块)</span>
			     </p>
			       
			     <p> <s:checkboxlist list="#{'01_01_':'指标实战交流区','01_02_':'K线/切线/形态分析区','01_03_':'波浪理论讨论区'}" name="thChildModule"  listKey="key" listValue="value" theme="simple" value="#request.moduleBean.thChildModule"></s:checkboxlist>
			   </p>
			 </div>
			 <div style="margin-top: 8px;padding-left: 20px;border-bottom: 1px solid #cccccc">
			  <p> <s:checkboxlist list="#{'02_':'基本面分析交流区'}" name="baseModule"  listKey="key" listValue="value" theme="simple" onclick="checkBoxChecked2()"  value="#request.moduleBean.baseModule"></s:checkboxlist><span style="font-size:12px;color:green;">(父模块)</span>
			    </p><p> <s:checkboxlist list="#{'02_01_':'价值理念大家谈','02_02_':'行业与公司分析研究','02_03_':'宏观经济交流讨论','02_04_':'机构研究报告交流区'}" name="baseChildModule"  listKey="key" listValue="value" theme="simple"  value="#request.moduleBean.baseChildModule"></s:checkboxlist>
			  </p>
			 </div>
			 <div style="margin-top: 8px;padding-left: 20px;border-bottom: 1px solid #cccccc">
			 
			   <p><s:checkboxlist list="#{'03_':'实战贴图交流区'}" name="tepModule"  listKey="key" listValue="value" theme="simple" onclick="checkBoxChecked3()"  value="#request.smodule"></s:checkboxlist><span style="font-size:12px;color:green;">(父模块)</span>
			  </p>
			   <p>
			  <s:checkboxlist list="#{'03_01_':'实盘贴图区','03_02_':'价值投资百万模拟帐户长期跟踪'}" name="tepChildModule"  listKey="key" listValue="value" theme="simple"  value="#request.schildModule"></s:checkboxlist>
		      </p>
			 </div>
			 <div style="margin-top: 8px;padding-left: 20px;border-bottom: 1px solid #cccccc">
			 <p>
			   <s:checkboxlist list="#{'04_':'书籍下载区'}" name="bmodule"  listKey="key" listValue="value" theme="simple" onclick="checkBoxChecked4()" value="#request.moduleBean.bmodule"> </s:checkboxlist><span style="font-size:12px;color:green;">(父模块)</span>
			 </p>
			 <p>
			  <s:checkboxlist list="#{'04_01_':'书籍推荐及下载'}" name="bchildModule"  listKey="key" listValue="value" theme="simple"  value="#request.moduleBean.bchildModule"></s:checkboxlist>
			</p>
			 </div>
			 <div style="margin-top: 8px;padding-left: 20px;border-bottom: 1px solid #cccccc" >
			  <p><s:checkboxlist list="#{'05_':'站务管理'}" name="mmodule"  listKey="key" listValue="value" theme="simple" onclick="checkBoxChecked5()"  value="#request.moduleBean.mmodule"></s:checkboxlist><span style="font-size:12px;color:green;">(父模块)</span></p>
			   <p> <s:checkboxlist list="#{'05_01_':'新手入门','05_02_':'投诉建议'}" name="mchildModule"  listKey="key" listValue="value" theme="simple"  value="#request.moduleBean.mchildModule"></s:checkboxlist>
			   </p>
			 </div>
             <div style="text-align: center;padding: 10px;">
             <input type="submit" value="提交更新" style="background-color: #fafbc2; color: #367115; padding-top: 4px; padding-bottom: 2px;">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="返   回" onclick="javaScript:window.history.back(-1)" style="background-color: #fafbc2; color: #367115; padding-top: 4px; padding-bottom: 2px;">
          </div>
          
          </div>
          
		 
		</form>	 
		 
  </body>
</html>
